package com.example.system.service.exam;

import com.example.common.core.domain.Result;
import com.example.system.domain.exam.dto.ExamAddDTO;
import com.example.system.domain.exam.dto.ExamEditDTO;
import com.example.system.domain.exam.dto.ExamQueryDTO;
import com.example.system.domain.exam.dto.ExamQuestionAddDTO;
import com.example.system.domain.exam.vo.ExamDetailVO;
import com.example.system.domain.exam.vo.ExamVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IExamService {
     public List<ExamVO> list(ExamQueryDTO examQueryDTO);

     public String add(ExamAddDTO examAddDTO);

     public boolean questionAdd(ExamQuestionAddDTO examQuestionAddDTO);

     public ExamDetailVO detail(Long examId);

     public Integer edit(ExamEditDTO examEditDTO);

     public Integer questionDelete(Long examId, Long questionId);

     public Integer delete(Long examId);

     public Integer publish(Long examId);


     public Integer cancelPublish(Long examId);
}
